import request from '@/api/request'
// 搜索提示接口
function getHelperActionInfo(data) {
    return request({
        url: '/search/helperaction',
        method: 'GET',
        data,
    })
}
// 搜索的关键词添加到数据库
function setAddHistoryActionInfo(data) {
    return request({
        url: '/search/addhistoryaction',
        method: 'POST',
        data,
    })
}
// 热门搜索与历史记录
function getIndexActionInfo(data) {
    return request({
        url: '/search/indexaction',
        method: 'GET',
        data,
    })
}
// 清空搜索历史
function delHistoryInfo(data) {
    return request({
        url: '/search/clearhistoryAction',
        method: 'POST',
        data,
    })
}

export { getHelperActionInfo, setAddHistoryActionInfo, getIndexActionInfo, delHistoryInfo }
